package com.tuxing.draa_data.dao.subject;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tuxing.draa_data.pojo.subject.NewDcWosSubAttr;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author yuanshihang
 * @since 2021-12-15
 */
@Repository
public interface NewDcWosSubAttrDao extends BaseMapper<NewDcWosSubAttr> {

    /**
     * @param recordId 期刊ID
     * @param subId    学科ID
     * @param vYear    年份
     * @return 数量
     * @decpription 根据学科期刊和年份查询数量
     * @author yuanshihang
     * @date 2021/12/16 14:21
     * @version 1.0
     */
    Integer findCountByRecordIdSubIdYear(@Param("recordId") Long recordId, @Param("subId") Long subId,
                                         @Param("vYear") Integer vYear);


}
